]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Fix ngettext() call
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Apr 2020 22:49:24 +0000 (00:49 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 17 Apr 2020 22:25:09 +0000 (22:25 +0000)
We don't pass the number that allows gettext to decide on the
correct string, whoops.

Spotted by Alexandre Franke.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2649

js/ui/windowManager.js

index 21c63b5c320695c9a0e7d35649b5fe463826f2d4..ffbec6d83c7f66575d1488442819f02bc0680a1e 100644 (file)
@@ -82,8 +82,10 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
     }
 
     _formatCountDown() {
-        let fmt = ngettext("Settings changes will revert in %d second",
-                           "Settings changes will revert in %d seconds");
+        const fmt = ngettext(
+            'Settings changes will revert in %d second',
+            'Settings changes will revert in %d seconds',
+            this._countDown);
         return fmt.format(this._countDown);
     }